package com.lagou.edu.mvcframework.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author liuc
 * @date 2021/4/22
 * @description 默认的异常处理拦截器
 **/
public class DefaultExceptionInterceptor extends ExceptionInterceptor{
    @Override
    protected String message(HttpServletRequest request, HttpServletResponse response,Exception throwable) {
        return DEFAULT_MSG + throwable.getCause().getMessage();
    }
}
